/*
 * Copyright (c) 2013-2014, thinkjoy Inc. All Rights Reserved.
 *
 * Project Name: wy
 * $Id:  Actor.java 2016-01-25 16:32:43 $
 */



package com.wy.domain;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import com.wy.common.domain.BaseDomain;

import java.util.*;

public class Actor extends BaseDomain{

    private Integer status;
    private Long createDate;
    private Long lastModDate;
    private String name;
    private String cover;
    private Long cityId;
    private Integer height;
    private Integer weight;
    private Integer xw;
    private Integer yw;
    private Integer tw;
    private Integer xm;
    private String hairColor;
    private String eyeColor;
    private String workExperience;
    private String workTags;
    private String workStyle;

	public Actor(){
	}

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Long createDate) {
        this.createDate = createDate;
    }

    public Long getLastModDate() {
        return lastModDate;
    }

    public void setLastModDate(Long lastModDate) {
        this.lastModDate = lastModDate;
    }

    public void setName(String value) {
        this.name = value;
    }

    public String getName() {
        return this.name;
    }
    public void setCover(String value) {
        this.cover = value;
    }

    public String getCover() {
        return this.cover;
    }
    public void setCityId(Long value) {
        this.cityId = value;
    }

    public Long getCityId() {
        return this.cityId;
    }
    public void setHeight(Integer value) {
        this.height = value;
    }

    public Integer getHeight() {
        return this.height;
    }
    public void setWeight(Integer value) {
        this.weight = value;
    }

    public Integer getWeight() {
        return this.weight;
    }
    public void setXw(Integer value) {
        this.xw = value;
    }

    public Integer getXw() {
        return this.xw;
    }
    public void setYw(Integer value) {
        this.yw = value;
    }

    public Integer getYw() {
        return this.yw;
    }
    public void setTw(Integer value) {
        this.tw = value;
    }

    public Integer getTw() {
        return this.tw;
    }
    public void setXm(Integer value) {
        this.xm = value;
    }

    public Integer getXm() {
        return this.xm;
    }
    public void setHairColor(String value) {
        this.hairColor = value;
    }

    public String getHairColor() {
        return this.hairColor;
    }
    public void setEyeColor(String value) {
        this.eyeColor = value;
    }

    public String getEyeColor() {
        return this.eyeColor;
    }
    public void setWorkExperience(String value) {
        this.workExperience = value;
    }

    public String getWorkExperience() {
        return this.workExperience;
    }
    public void setWorkTags(String value) {
        this.workTags = value;
    }

    public String getWorkTags() {
        return this.workTags;
    }
    public void setWorkStyle(String value) {
        this.workStyle = value;
    }

    public String getWorkStyle() {
        return this.workStyle;
    }

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("Id",getId())
			.append("Status",getStatus())
			.append("CreateDate",getCreateDate())
			.append("LastModDate",getLastModDate())
			.append("Name",getName())
			.append("Cover",getCover())
			.append("CityId",getCityId())
			.append("Height",getHeight())
			.append("Weight",getWeight())
			.append("Xw",getXw())
			.append("Yw",getYw())
			.append("Tw",getTw())
			.append("Xm",getXm())
			.append("HairColor",getHairColor())
			.append("EyeColor",getEyeColor())
			.append("WorkExperience",getWorkExperience())
			.append("WorkTags",getWorkTags())
			.append("WorkStyle",getWorkStyle())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof Actor == false) return false;
		if(this == obj) return true;
		Actor other = (Actor)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

